//
//  JQKSwitch.h
//  SwitchDemo
//
//  Created by Xwoder on 2017/9/11.
//  Copyright © 2017年 Xwoder. All rights reserved.
//

#import <UIKit/UIKit.h>

@class JQKSwitch;

@protocol JQKSwitchDelegate <NSObject>

- (void)jqkSwitch:(JQKSwitch *)jqkSwitch valueChangedByUser:(BOOL)isChangedByUser;

@end

@interface JQKSwitch : UISwitch

@property (nonatomic, assign, readonly, getter=isChangedByUser) BOOL changedByUser;

@property (nonatomic, weak) id<JQKSwitchDelegate> delegate;

@property (nonatomic, copy) void(^valueChangedBlock)(BOOL isChangedByUser);

@end
